A Fast Average Case Algorithm for Lyndon Decomposition

نویسنده

  • Costas S. Iliopoulos
چکیده

A simple algorithm, called LD, is described for computing the Lyndon decomposition of a word of length n. Although LD requires time O(nlogn) in the worst case, it is shown to require only (n) worst-case time for words which are \1-decomposable", and (n) average-case time for words whose length is small with respect to alphabet size. The main interest in LD resides in its application to the problem of computing the canonical form of a circular word. For this problem, LD is shown to execute signiicantly faster than other known algorithms on important classes of words. Further, experiment suggests that, when applied to arbitrary words, LD on average outperforms the other known canonization algorithms in terms of two measures: number of tests on letters and execution time.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Finely homogeneous computations in free Lie algebras

We first give a fast algorithm to compute the maximal Lyndon word (with respect to lexicographic order) ofLy (A) for every given multidegree in N . We then give an algorithm to compute all the words living in Ly (A) for any given in N . The best known method for generating Lyndon words is that of Duval [1], which gives a way to go from every Lyndon word of length n to its successor (with respec...

متن کامل

Algorithms to Compute the Lyndon Array

In the Lyndon array λ = λx[1..n] of a string x = x[1..n], λ[i] is the length of the longest Lyndon word starting at position i of x. The computation of λ has recently become of great interest, since it was shown (Bannai et al., The “Runs” Theorem [2]) that the runs in x are computable in linear time from λx. Here we first describe three algorithms for computing λx that have been suggested in th...

متن کامل

Average Cost of Duval's Algorithm for Generating Lyndon Words Average Cost of Duval's Algorithm for Generating Lyndon Words

The average cost of Duval's algorithm for generating all Lyndon words up to a given length in lexicographic order is proved to be asymptotically equal to (q + 1)=(q ? 1), where q is the size of the underlying alphabet. In particular, the average cost is independent of the length of the words generated. A precise evaluation of the constants is also given.

متن کامل

Microwave-assisted Decomposition of two Simple Zinc(II) Schiff Base Complexes: A Facile and Fast Route to Synthesize ZnO Nanostructures

ZnO nanorods and nanoparticles have been easily prepared via the decomposition of two simple Schiff base zinc (II) complexes, namely (N,N'–disalicylalethylenediamine)zince(II) and (N,N'–disalicylalphenylenediamine)zince(II) under microwave irradiation. The decomposition products of the complexes were characterized by FT-IR, XRD, SEM, EDX and UV-visible spectroscopy.  FT-IR, XRD and EDX results ...

متن کامل

Solving railway line planning problems using a decomposition algorithm

The passenger line planning is a process of strategic long-term decision-making problem in the field of railway passenger planning. A line is a route between starting point and destination with certain stops, which has a certain frequency of train schedule. A new solution based on decomposition algorithm has been proposed in this paper, which is defined in a master problem and two sub problems....

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1995